package com.vive.page;

import org.apache.wicket.Page;
import org.apache.wicket.markup.html.IPackageResourceGuard;
import org.apache.wicket.markup.html.SecurePackageResourceGuard;
import org.apache.wicket.protocol.http.WebApplication;

public class FrontendApplication extends WebApplication {
    @Override
    public Class<? extends Page> getHomePage() {
        return FrontendPage.class;
    }
    private void enableServerFontLoadable() {
        IPackageResourceGuard guard = getResourceSettings()
                .getPackageResourceGuard();
        if (guard instanceof SecurePackageResourceGuard) {
            ((SecurePackageResourceGuard) guard).addPattern("+**.ttf");
            ((SecurePackageResourceGuard) guard).addPattern("+**.eot");
            ((SecurePackageResourceGuard) guard).addPattern("+**.svg");
            ((SecurePackageResourceGuard) guard).addPattern("+**.woff");
            ((SecurePackageResourceGuard) guard).addPattern("+**.woff2");
        }
    }
}
